package chen.web.email;

import java.io.File;
import java.util.LinkedList;
import java.util.List;


public class SimpleEmail {

	private EmailAddress to;
	private String subject;
	private String html;
	private List<File> attachments = new LinkedList<File>();

	public EmailAddress getTo() {
		return to;
	}
	public void setTo(EmailAddress to) {
		this.to = to;
	}
	public String getSubject() {
		return subject;
	}
	public void setSubject(String subject) {
		this.subject = subject;
	}
	public String getHtml() {
		return html;
	}
	public void setHtml(String html) {
		this.html = html;
	}

	public List<File> getAttachments() {
		return attachments;
	}
	
	public void addAttachment(File attachment){
		attachments.add(attachment);
	}

}
